import { get, post, put, del, streamReaderPost } from '@/utils/request'

export const getNotifySetting = async () => {
    try {
        const response = await get<any>('/notifySetting/get');
        return response;
    } catch (error) {
    }
};

export const saveNotifySetting = async (data: any) => {
    try {
        const response = await post<any>('/notifySetting/save', data);
        return response;
    } catch (error) {
    }
};

export const stream = async (data: any) => {
    try {
        const response = await streamReaderPost<any>('/test/stream', data);
        return response;
    } catch (error) {
    }
};


export interface NotifyMailSetting {
    id: number | null,
    type: number | null,
    mail: string,
    barkUrl: string,
}
